import java.util.Scanner;

class Player{
    String name;
    Player(String name){
        this.name = name;
    }
    int show() {  //出拳方法
        int show = ( int ) (Math.random() * 10 ) %3  +1;
        return show ;
    }
}

class ComputerPlayer extends Player{
    ComputerPlayer(String name){
        super(name);
    }

}
class PersonPlayer extends Player{
    PersonPlayer(String name){
        super(name);
    }
    int show(){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        return n;
    }
}
class Game{
    ComputerPlayer p1;
    PersonPlayer p2;

    Game(ComputerPlayer p1,PersonPlayer p2){
        this.p1 = p1;
        this.p2 = p2;
    }
    void start() {
        int n1 = p1.show();
        int n2 = p2.show();
        if (n1==n2) {
            System.out.println("A Draw.");
        }
        else if((n1==1&&n2==3)||(n1==2&&n2==1)||(n1==3&&n2==2)) {
            System.out.println("Winner is computerPlayer.");
        }
        else{
            System.out.println("Winner is personPlayer.");
        }
    }
}

public class Main3 {

    public static void main(String[] args) {
        ComputerPlayer c = new ComputerPlayer ("computer");
        PersonPlayer  p = new PersonPlayer("player ") ;
        Game g = new Game(c ,p);
        g.start();
    }

}
